package com.gome.ocean.dao.model.websql;

import java.util.List;
import java.util.Map;

/**
 * 数据展示
 * 
 * @author haqiaolong 2016年9月18日 上午10:59:12
 * @since 5.0.0
 */
public class SqlResultVO {

    private boolean                   canEdit;             // 表格是否能编辑

    private String                    canNotEditReason;    // 不能编辑原因

    private List<Map<String, Object>> data;                // 表格显示的数据

    private List<DisplayColumnsVO>    displayColumns;      // 表格头

    private String                    editDbName;          // 库名

    private String                    editTableName;       // 表名

    private List<String>              editTablePrimaryKeys; // 编辑主键

    private String                    msg;                 // 操作提示

    private List<MetadataVO>          metadata;            // 元数据

    private String                    resultType = "data";

    private String                    sqlType;

    private long                      timeDelay;

    private long                      rows;

    public boolean isCanEdit() {
        return canEdit;
    }

    public void setCanEdit(boolean canEdit) {
        this.canEdit = canEdit;
    }

    public List<Map<String, Object>> getData() {
        return data;
    }

    public void setData(List<Map<String, Object>> data) {
        this.data = data;
    }

    public List<DisplayColumnsVO> getDisplayColumns() {
        return displayColumns;
    }

    public void setDisplayColumns(List<DisplayColumnsVO> displayColumns) {
        this.displayColumns = displayColumns;
    }

    public String getEditDbName() {
        return editDbName;
    }

    public void setEditDbName(String editDbName) {
        this.editDbName = editDbName;
    }

    public String getEditTableName() {
        return editTableName;
    }

    public void setEditTableName(String editTableName) {
        this.editTableName = editTableName;
    }

    public List<String> getEditTablePrimaryKeys() {
        return editTablePrimaryKeys;
    }

    public void setEditTablePrimaryKeys(List<String> editTablePrimaryKeys) {
        this.editTablePrimaryKeys = editTablePrimaryKeys;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<MetadataVO> getMetadata() {
        return metadata;
    }

    public void setMetadata(List<MetadataVO> metadata) {
        this.metadata = metadata;
    }

    public String getResultType() {
        return resultType;
    }

    public void setResultType(String resultType) {
        this.resultType = resultType;
    }

    public String getSqlType() {
        return sqlType;
    }

    public void setSqlType(String sqlType) {
        this.sqlType = sqlType;
    }

    public long getTimeDelay() {
        return timeDelay;
    }

    public void setTimeDelay(long timeDelay) {
        this.timeDelay = timeDelay;
    }

    public long getRows() {
        return rows;
    }

    public void setRows(long rows) {
        this.rows = rows;
    }

    public String getCanNotEditReason() {
        return canNotEditReason;
    }

    public void setCanNotEditReason(String canNotEditReason) {
        this.canNotEditReason = canNotEditReason;
    }
}
